'use strict';

/**
 * @ngdoc directive
 * @name jgappApp.directive:ringmsg
 * @description
 * # ringmsg
 */
angular.module('jgappApp')
    .directive('ringMsg', ['$location', function($location) {
        return {
            template: '<div class="ring"><div class="icon"></div></div>',
            restrict: 'AE',
            replace:true,
            link: function postLink(scope, element, attrs) {
                element.bind('click', function() {
                    // $location.path("user/msglist");
                    // scope.$apply()
                });
                element.remove()
            }
        };
    }]);
